package com.speedricemanager.activity.home.abstracts;

import com.jbm.core.iface.IAcross;

import rx.functions.Action1;

/**
 * Created by 李征 on 2017/12/6.
 */

public abstract class NetModea implements Action1<IAcross> {
private final int SUCC_CODE=200;
    protected   void onComplete(IAcross iAcross, String methodName){};
    protected  void onExe(IAcross iAcross, String methodName){};
    @Override
    public void call(IAcross iAcross) {
        if (iAcross.m_code==SUCC_CODE){
            onComplete( iAcross,iAcross.method);
        }else {
            onExe( iAcross,iAcross.method);
        }

    }
}
